<?php

/**
 * SubjectBlock
 * 
 * @author Radovan Dvorsky
 * @version 20100224
 */

require_once 'Zend/Db/Table/Abstract.php';

class Db_DbTable_SubjectBlock extends Zend_Db_Table_Abstract {
	/**
	 * The default table name 
	 */
	protected $_name = 'subject_block';
	
	/**
	 * Primary key
	 */
	protected $_primary = array('sid','bid');
	
	/**
	 * Parrent tables description 
	 */	
	protected $_referenceMap = array(
		'Block' => array(
			'columns' => array('bid'),
			'refTableClass' => 'Db_DbTable_Block',
			'refColumns' => array('bid'),
			'onDelete' => self::CASCADE,	
		),
		'Subject' => array(
			'columns' => array('sid'),
			'refTableClass' => 'Db_DbTable_Subject',
			'refColumns' => array('sid'),				
		)
	);

}

